<?php $this->_extends('_layouts/main_layout'); ?>
<?php $this->_block('title'); ?>
	Update email template
<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>
<div id="content" class="box">
	<h1>Update email template</h1>
		<?php if (isset($errors)) 
				{
					foreach ($errors as $error)
					{
		?>
				<p class="msg error"><?php echo $error;?></p>
		<?php		}
				}
		?>
		<fieldset>
			<legend>Update email template</legend>
		
		<form method="post" action="<?php echo url('email/update');?>">
		<input type="hidden" name="id" value="<?php echo isset($id) ? $id : '';?>" />
		<table class="nostyle">
			<tr>
				<td>Tag:</td>
				<td><input type="text" class="input-text" name="tag" value="<?php echo isset($tag) ? $tag : '';?>"/ ></td>
			</tr>
			<tr>
				<td>Subject:</td>
				<td><input type="text" class="input-text" name="subject" value="<?php echo isset($subject) ? $subject : '';?>"/ ></td>
			</tr>
			<tr>
				<td>Sender:</td>
				<td><input type="text" class="input-text" name="sender" value="<?php echo isset($sender) ? $sender : '';?>"/ ></td>
			</tr>
			<tr>
				<td>Content:</td>
				<td><textarea name="content"><?php echo isset($content) ? $content : '';?></textarea>
			</tr>
			<tr>
				<td colspan="2" class="t-right"><input type="submit" class="input-submit" value="Save"/></td>
			</tr>
		</table>
		</form>
	</fieldset>
</div>
<?php $this->_endblock(); ?>